package com.lovo.system.utils;

import com.lovo.system.constant.MessageCode;

/**
 * 响应对象
 */
public class ResponseResult<T> {

    // 响应消息
    private String message;

    // 编码
    private String code;

    // 数据
    private T data;

    public ResponseResult() {
        this.message = MessageCode.SUCCESS.message;
        this.code = MessageCode.SUCCESS.code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
